<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">
<h:head>
	<title>Cadastro de Aluno</title>
</h:head>
<h:body>
	<ui:composition template="/WEB-INF/layout/template.xhtml">
		<ui:define name="conteudo">
			<h:form>
				<p:panel header="Cadastro de Aluno" id="panelCadastroAluno"
					style="width: 550px;">
					<h:panelGrid columns="2">

						<h:outputLabel value="Nome:" for="input-aluno-nome" />
						<h:inputText id="input-aluno-nome" style="width: 180px;" value="#{cadastroBean.aluno.nome}" />

						<h:outputLabel value="Login:" for="input-aluno-login" />
						<h:inputText id="input-aluno-login" style="width: 180px;" value="#{cadastroBean.aluno.login}" />

						<h:outputLabel value="Registro:" for="input-aluno-registro" />
						<h:inputText id="input-aluno-registro" style="width: 180px;" value="#{cadastroBean.aluno.registro}" />

					
						<h:commandButton value="Cadastrar" 	action="#{cadastroBean.incluirAluno}" style="width:100px;" />
						<h:commandButton value="Cancelar" action="home" style="width:100px;" />
						
					</h:panelGrid>
				</p:panel>
			</h:form>

		</ui:define>
	</ui:composition>
</h:body>
</html>